// 封装首页相关接口
import request from '@/utils/request'

// 统计景点总数
export const sceneryTotalService = () => {
  return request({
    url: '/api/scenery/count',
    method: 'GET'
  })
}

// 统计酒店总数
export const hotelTotalService = () => {
  return request({
    url: '/api/hotel/count',
    method: 'GET'
  })
}

// 统计餐厅总数
export const restaurantTotalService = () => {
  return request({
    url: '/api/restaurant/count',
    method: 'GET'
  })
}

// 统计攻略总数
export const postTotalService = () => {
  return request({
    url: '/api/post/count',
    method: 'GET'
  })
}

// 景点类型柱状图
export const sceneryBarChartService = () => {
  return request({
    url: '/api/chart/scenery/bar',
    method: 'GET'
  })
}
// 酒店类型柱状图
export const hotelBarChartService = () => {
  return request({
    url: '/api/chart/hotel/bar',
    method: 'GET'
  })
}
// 餐厅类型柱状图
export const restaurantBarChartService = () => {
  return request({
    url: '/api/chart/restaurant/bar',
    method: 'GET'
  })
}

// 景点等级饼图
export const sceneryPieChartService = () => {
  return request({
    url: '/api/chart/scenery/pie',
    method: 'GET'
  })
}

// 酒店等级饼图
export const hotelPieChartService = () => {
  return request({
    url: '/api/chart/hotel/pie',
    method: 'GET'
  })
}

// 城市间景点、酒店、餐厅平均价格折线图
export const cityLineChartService = () => {
  return request({
    url: '/api/chart/city/line',
    method: 'GET'
  })
}
